import request from '@/utils/request'

// 查询cancel_order_fee取消订单手续费列表
export function listFee(query) {
  return request({
    url: '/system/fee/list',
    method: 'get',
    params: query
  })
}

// 查询cancel_order_fee取消订单手续费详细
export function getFee(id) {
  return request({
    url: '/system/fee/info?id=' + id,
    method: 'get'
  })
}

// 新增cancel_order_fee取消订单手续费
export function addFee(data) {
  return request({
    url: '/system/fee/add',
    method: 'post',
    data: data
  })
}

// 修改cancel_order_fee取消订单手续费
export function updateFee(data) {
  return request({
    url: '/system/fee/edit',
    method: 'put',
    data: data
  })
}

// 删除cancel_order_fee取消订单手续费
export function delFee(id) {
  return request({
    url: '/system/fee/delete/' + id,
    method: 'delete'
  })
}
